package com.ruoyi.hospital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.DoctorDiseaseMapper;
import com.ruoyi.hospital.domain.DoctorDisease;
import com.ruoyi.hospital.service.IDoctorDiseaseService;

/**
 * 医生专病关联Service业务层处理
 * 
 * @author 天天困
 * @date 2025-08-14
 */
@Service
public class DoctorDiseaseServiceImpl implements IDoctorDiseaseService 
{
    @Autowired
    private DoctorDiseaseMapper doctorDiseaseMapper;

    /**
     * 查询医生专病关联
     * 
     * @param id 医生专病关联主键
     * @return 医生专病关联
     */
    @Override
    public DoctorDisease selectDoctorDiseaseById(Long id)
    {
        return doctorDiseaseMapper.selectDoctorDiseaseById(id);
    }

    /**
     * 查询医生专病关联列表
     * 
     * @param doctorDisease 医生专病关联
     * @return 医生专病关联
     */
    @Override
    public List<DoctorDisease> selectDoctorDiseaseList(DoctorDisease doctorDisease)
    {
        return doctorDiseaseMapper.selectDoctorDiseaseList(doctorDisease);
    }

    /**
     * 新增医生专病关联
     * 
     * @param doctorDisease 医生专病关联
     * @return 结果
     */
    @Override
    public int insertDoctorDisease(DoctorDisease doctorDisease)
    {
        return doctorDiseaseMapper.insertDoctorDisease(doctorDisease);
    }

    /**
     * 修改医生专病关联
     * 
     * @param doctorDisease 医生专病关联
     * @return 结果
     */
    @Override
    public int updateDoctorDisease(DoctorDisease doctorDisease)
    {
        return doctorDiseaseMapper.updateDoctorDisease(doctorDisease);
    }

    /**
     * 批量删除医生专病关联
     * 
     * @param ids 需要删除的医生专病关联主键
     * @return 结果
     */
    @Override
    public int deleteDoctorDiseaseByIds(Long[] ids)
    {
        return doctorDiseaseMapper.deleteDoctorDiseaseByIds(ids);
    }

    /**
     * 删除医生专病关联信息
     * 
     * @param id 医生专病关联主键
     * @return 结果
     */
    @Override
    public int deleteDoctorDiseaseById(Long id)
    {
        return doctorDiseaseMapper.deleteDoctorDiseaseById(id);
    }
}
